package com.zhuimeng.Application.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;


public class user {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String userpassword;
    private String phone;
    private String nickname;
    private String email;
    private String header;
    private Integer sex;
    private Integer happyBean;


    public user() {
        super();
    }

    public user(Integer id, String username, String userpassword, String phone, String nickname, String email, String header, Integer sex, Integer happyBean) {
        this.id = id;
        this.username = username;
        this.userpassword = userpassword;
        this.phone = phone;
        this.nickname = nickname;
        this.email = email;
        this.header = header;
        this.sex = sex;
        this.happyBean = happyBean;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getHappyBean() {
        return happyBean;
    }

    public void setHappyBean(Integer happyBean) {
        this.happyBean = happyBean;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userpassword='" + userpassword + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", email='" + email + '\'' +
                ", header='" + header + '\'' +
                ", sex=" + sex +
                ", happyBean=" + happyBean +
                '}';
    }
}
